package com.example.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("operate")
public class Operate {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField(value = "operator")
    private String operator;
    @TableField(value = "operate_method")
    private String operateMethod;
    @TableField(value = "operate_type")
    private String operateType;
    @TableField(value = "params")
    private String params;
    @TableField(value = "operate_result")
    private String operateResult;
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time",insertStrategy = FieldStrategy.NEVER)//数据库已设置默认值
    private Date createTime;
}
